/* jshint indent: 2 */

module.exports = function(sequelize, DataTypes) {
  return sequelize.define('v_iframe_partners', {
    RuleName: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    RulePlatformName: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    RuleAble: {
      type: DataTypes.TEXT,
      allowNull: true
    },
    OS_ID: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      defaultValue: '0'
    },
    OS_Name: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    OS_Type: {
      type: DataTypes.CHAR(10),
      allowNull: true
    },
    OS_IsParent: {
      type: DataTypes.INTEGER(1),
      allowNull: true,
      defaultValue: '0'
    },
    OS_ParentID: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    OS_Admin_UserID: {
      type: DataTypes.CHAR(36),
      allowNull: true
    },
    OS_Addr: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    OS_PlatformRuleID: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      defaultValue: '0'
    },
    OS_PlatFormID: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      defaultValue: '0'
    },
    OS_IsDel: {
      type: DataTypes.INTEGER(1),
      allowNull: true,
      defaultValue: '0'
    },
    OS_IsShow: {
      type: DataTypes.INTEGER(1),
      allowNull: true,
      defaultValue: '1'
    },
    OS_CreateTime: {
      type: DataTypes.DATE,
      allowNull: true
    },
    OS_Desc: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    OS_AreaCode: {
      type: DataTypes.CHAR(20),
      allowNull: true
    },
    OS_Code: {
      type: DataTypes.STRING(10),
      allowNull: true
    }
  }, {
    tableName: 'v_iframe_partners'
  });
};
